package com.lai.shop.entity;



import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单项表
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2022-05-19 13:16:53
 */
@Data
@TableName("order_item")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * order_id
	 */
	private Long orderId;
	/**
	 * 订单号
	 */
	private String orderSn;
	/**
	 * 商品分类id
	 */
	private Long categoryId;
	/**
	 * 商品id
	 */
	private Long productId;
	/**
	 * product_name
	 */
	private String productName;
	/**
	 * product_pic
	 */
	private String productPic;
	/**
	 * 商品价格
	 */
	private BigDecimal productPrice;
	/**
	 * 商品购买的数量
	 */
	private Integer productAmount;

}
